/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 服务员扩展表
 *
 * @author proj code generator
 * @date 2021-02-01 19:00:18
 */
@Data
@TableName("fx_waiter_ext")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "服务员扩展表")
public class FxWaiterExt extends Model<FxWaiterExt> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 父级ID（上次切换的服务员ID，首次的服务员ID 为0）
     */
    @ApiModelProperty(value="父级ID（上次切换的服务员ID，首次的服务员ID 为0）")
    private Long parentId;
    /**
     * 登录人ID（服务员）
     */
    @ApiModelProperty(value="登录人ID（服务员）")
    private Long loginId;
    /**
     * 公司id
     */
    @ApiModelProperty(value="公司id")
    private Long companyId;
    /**
     * 品牌id
     */
    @ApiModelProperty(value="品牌id")
    private Long brandId;
    /**
     * 门店id
     */
    @ApiModelProperty(value="门店id")
    private Long shopId;
    /**
     * 0前厅1后厨
     */
    @ApiModelProperty(value="0前厅1后厨")
    private Integer waiterType;
    /**
     * 余额
     */
    @ApiModelProperty(value="余额")
    private BigDecimal amountMoney;
	/**
	 * 服务员工作状态  1 工作中(现在工作的商家)  2 上家工作（上家工作的商家）3（上家工作的品牌）
	 */
	@ApiModelProperty(value="服务员工作状态  1 工作中(现在工作的商家)  2 上家工作（上家工作的商家）3（上家工作的品牌）")
	private Integer workState;
	/**
	 * 开始时间
	 */
	@ApiModelProperty(value="开始时间")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	private LocalDateTime startTime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty(value="结束时间")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	private LocalDateTime endTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
